import java.util.TreeSet;

/**
 * @author lzhycat
 * @date 2022-09-04 22:10
 */
public class test {
    class People implements Comparable{
        String name;
        public People() {}

        public String getName() {
            return this.name;
        }

        @Override
        public int compareTo(Object o) {
            return this.name.compareTo(((People)o).name);
        }
    }

    public static void main(String[] args) {
        TreeSet<Object> set1 = new TreeSet<>();
        set1.add(new String("hy"));
        set1.add(new String("hy"));
        System.out.println(set1.size());
    }
}
